﻿using System;
using System.Web.UI;
using Components.Data.Fields;
namespace Components.Website.Controls
{
  public partial class Header : UserControl
  {
    protected void Page_Init(object sender, EventArgs e)
    {
      ImageField logo = (ImageField)Components.Context.Element.Fields["logo"];
      TextField title = (TextField)Components.Context.Element.Fields["title"];

      Logo.AlternateText = logo.AlternateText;
      Logo.ImageUrl = logo.ImageUrl;

      Title.Text = Components.Context.Element["title"];
    }
  }
}